package laboratoryQ.ui.draw.style;

import java.util.ArrayList;
import java.util.List;

public class ChainStylizerStylizer implements IStylizer {
	public static final IStylizer EMPTY_INSTANCE = new ChainStylizerStylizer();
	private List<IStylizer> chain = new ArrayList<IStylizer>();

	@Override
	public void fillStyle(IStyle style) {
		for (IStylizer stylizer : chain) {
			stylizer.fillStyle(style);
		}
	}

	public void addStage(IStylizer stylizer) {
		chain.add(stylizer);
	}
}
